#ifndef DISPLAY_H
#define DISPLAY_H

#include <string>
#include <QRect>
#include <QColor>
#include <QPaintDevice>

class Signal;
class History;

using namespace std;

class LMONDisplay
{
protected:
	string _name;
	History* _pHistory;
	QColor _color;
	bool _positionIsShared;
	QRect _rect;
	int _height;

public:
	LMONDisplay(Signal* s, QColor color, int height, bool positionIsShared);
	virtual void drawSignal(QPaintDevice* pPD);
	
	void setRect(int left, int top, int right, int bottom);
	QRect getRect();
	bool positionIsShared();
	virtual void setScaleX(int scale);

	int getHeight();
};

#endif
